package com.ruoyi.decision.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.decision.mapper.LaunchDecisionMapper;
import com.ruoyi.decision.domain.LaunchDecision;
import com.ruoyi.decision.service.ILaunchDecisionService;

/**
 * 发起与决策Service业务层处理
 * 
 * @author beefcake
 * @date 2021-10-22
 */
@Service
public class LaunchDecisionServiceImpl implements ILaunchDecisionService 
{
    @Autowired
    private LaunchDecisionMapper launchDecisionMapper;

    /**
     * 查询发起与决策
     * 
     * @param id 发起与决策主键
     * @return 发起与决策
     */
    @Override
    public LaunchDecision selectLaunchDecisionById(Long id)
    {
        return launchDecisionMapper.selectLaunchDecisionById(id);
    }

    /**
     * 查询发起与决策列表
     * 
     * @param launchDecision 发起与决策
     * @return 发起与决策
     */
    @Override
    public List<LaunchDecision> selectLaunchDecisionList(LaunchDecision launchDecision)
    {
        return launchDecisionMapper.selectLaunchDecisionList(launchDecision);
    }

    /**
     * 新增发起与决策
     * 
     * @param launchDecision 发起与决策
     * @return 结果
     */
    @Override
    public int insertLaunchDecision(LaunchDecision launchDecision)
    {
        return launchDecisionMapper.insertLaunchDecision(launchDecision);
    }

    /**
     * 修改发起与决策
     * 
     * @param launchDecision 发起与决策
     * @return 结果
     */
    @Override
    public int updateLaunchDecision(LaunchDecision launchDecision)
    {
        return launchDecisionMapper.updateLaunchDecision(launchDecision);
    }

    /**
     * 批量删除发起与决策
     * 
     * @param ids 需要删除的发起与决策主键
     * @return 结果
     */
    @Override
    public int deleteLaunchDecisionByIds(Long[] ids)
    {
        return launchDecisionMapper.deleteLaunchDecisionByIds(ids);
    }

    /**
     * 删除发起与决策信息
     * 
     * @param id 发起与决策主键
     * @return 结果
     */
    @Override
    public int deleteLaunchDecisionById(Long id)
    {
        return launchDecisionMapper.deleteLaunchDecisionById(id);
    }
}
